package com.annotations

import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialInfo
import kotlinx.serialization.Serializable

@Serializable
sealed class UnionType {
    @Serializable
    data class StringType(val value: String) : UnionType()
    @Serializable
    data class IntType(val value: Int) : UnionType()
    @Serializable
    data class BooleanType(val value: Boolean) : UnionType()
}


@OptIn(ExperimentalSerializationApi::class)
@Target(
    AnnotationTarget.PROPERTY// 类型
)
@Retention(AnnotationRetention.RUNTIME)
@SerialInfo
@MustBeDocumented
annotation class DefaultValue(val default: String)

